public class CompanyStaff {
    String []staff=new String[3];
    int count=0;
    public void add(String sfname) {
        for (int i = count; i < staff.length; i++) {
                staff[i] = sfname;
                count++;
                return;
            }
        System.out.println("公司已满");
    }
}
